Namespaces

Functions

string
asset(string $path, bool $local = false)

Retrieves publicly available asset.

at line 21
string
checkboxLabelLeft(string $label, string $name, string $value = "", bool $checked = false, array $inputAttrs = [], array $divAttrs = [], array $errors = [])

Generates a div containing an input of type checkbox with the label to the left that is not part of a group.

at line 29
string
checkboxLabelRight(string $label, string $name, string $value = "", bool $checked = false, array $inputAttrs = [], array $divAttrs = [], array $errors = [])

Generates a div containing an input of type checkbox with the label to the right that is not part of a group.

at line 72
void
cl(mixed ...$vars)

Prints to console using JavaScript.

at line 38
mixed
config(string $key, mixed $default = null)

Get a configuration value.

at line 53
void
csrf()

Inserts csrf token into form.

at line 99
void
dd(mixed ...$vars)

Performs var_dump of parameter and kills the page.

at line 66
void
dump(mixed ...$vars)

Dumps content but continues execution.

at line 82
string
e(string|null $value)

Escape a string for safe HTML output.

at line 102
string
email(string $label, string $name, mixed $value = '', array $inputAttrs = [], array $divAttrs = [], array $errors = [])

Renders an HTML div element that surrounds an input of type email.

at line 136
mixed
env(string $key, mixed $default = null)

Get an environment variable.

at line 115
string
errorBag(ArraySet $errors)

Returns list of errors.

at line 113
void
flashMessage(string $type, string $message)

Adds a session alert message.

at line 130
string
hidden(string $name, mixed $value)

Generates a hidden input element.

at line 163
void
info(string $message, string $level = Logger::INFO, string $background = Tools::BG_GREEN, string $text = Tools::TEXT_LIGHT_GREY)

No description

at line 151
string
input(string $type, string $label, string $name, mixed $value = '', array $inputAttrs = [], array $divAttrs = [], array $errors = [])

Assists in the development of forms input blocks in forms. It accepts parameters for setting attribute tags in the form section. Not to be used for inputs of type "Submit" For submit inputs use the submitBlock or submitTag functions.

at line 190
void
logger(string $message, string $level = Logger::INFO)

Performs operations for adding content to log files.

at line 170
string
now(string|null $timezone = null, string|null $format = null, string|null $locale = null)

Get the current time as a formatted string using Carbon.

at line 194
string
output(string $name, string $for)

Generates an HTML output element.

at line 220
string
radio(string $label, string $id, string $name, string $value, bool $checked = false, array $inputAttrs = [])

Creates an input element of type radio with an accompanying label element. Compatible with radio button groups.

at line 246
void
redirect(string $location, array $params = [])

Performs redirect operations.

at line 216
string
route(string $path, array $params = [])

Route function for views that supports dot notation and array of parameters.

at line 230
string
select(string $label, string $name, string|int|null $value, array $options, array $inputAttrs = [], array $divAttrs = [], array $errors = [])

Renders a select element with a list of options.

at line 282
string
submit(string $buttonText, array $inputAttrs = [])

Create a input element of type submit.

at line 338
string
submitBlock(string $buttonText, array $inputAttrs = [], array $divAttrs = [])

Generates a div containing an input of type submit.

at line 315
string
tel(string $label, string $name, mixed $value = '', array $inputAttrs = [], array $divAttrs = [], array $errors = [])

Renders an HTML div element that surrounds an input of type tel.

at line 363
string
textarea(string $label, string $name, string|null $value, array $inputAttrs = [], array $divAttrs = [], array $errors = [])

Assists in the development of textarea in forms. It accepts parameters for setting attribute tags in the form section.

at line 401
string
vite(string $asset)

Generate the URL for a Vite-built asset.

at line 258